import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '步骤名称',
    align: "center",
    dataIndex: 'stepName'
  },
  {
    title: '步骤序号',
    align: "center",
    sorter: true,
    dataIndex: 'stepIndex'
  },
  {
    title: '外业工作规范',
    align: "center",
    dataIndex: 'groupId_dictText'
  },
  {
    title: '数据采集类型',
    align: "center",
    dataIndex: 'dataType_dictText'
  },
  {
    title: '数据采集量',
    align: "center",
    dataIndex: 'dataCount'
  },
  {
    title: '步骤内部分组',
    align: "center",
    dataIndex: 'stepGroupCode'
  },
  {
    title: '步骤内部分组序号',
    align: "center",
    dataIndex: 'stepGroupIndex'
  },
];

// 高级查询数据
export const superQuerySchema = {
  stepName: {title: '步骤名称',order: 0,view: 'text', type: 'string',},
  stepIndex: {title: '步骤序号',order: 1,view: 'number', type: 'number',},
  groupId: {title: '外业工作规范',order: 2,view: 'list', type: 'string',dictTable: "base_field_work_process_group", dictCode: 'group_code', dictText: 'group_name',},
  dataType: {title: '数据采集类型',order: 3,view: 'number', type: 'number',dictCode: 'dict_field_data_type',},
  dataCount: {title: '数据采集量',order: 4,view: 'number', type: 'number',},
  stepGroupCode: {title: '步骤内部分组',order: 5,view: 'text', type: 'string',},
  stepGroupIndex: {title: '步骤内部分组序号',order: 6,view: 'number', type: 'number',},
};
